package oa.hleast.xswl.common.constant;


import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.extern.slf4j.Slf4j;

/**
 * @author 302
 */
@Slf4j
@Getter
@AllArgsConstructor
public enum OperationTypeEnum {

    //    操作类型  2分派面试官 3面试官评价 4面试综合评价
    assign(2, "分派任务给面试官"),
    evaluate(3, "面试官评价"),
    overview(4, "面试综合评价");


    private final Integer code;
    private final String describe;


    public static OperationTypeEnum getEnum(int code) {
        for (OperationTypeEnum value : values()) {
            if (value.getCode().equals(code)) {
                return value;
            }
        }
        return null;
    }

}
